package telas.componentes;
import javax.swing.BorderFactory;

import javax.swing.JToolBar;
import javax.swing.border.BevelBorder;

public class BarraFerramenta extends JToolBar
{
	private static final long serialVersionUID = 4747800603243215850L;
	private Botao btEditar;
	private Botao btExluir;
	private Botao btBusca;
	private Botao btNovo;
	
	public BarraFerramenta()
	{
		initGUI();
	}

	private void initGUI() {
		try {
			{
				this.setPreferredSize(new java.awt.Dimension(197, 27));
				this.setBorder(BorderFactory.createEtchedBorder(BevelBorder.RAISED));
				{
					btNovo = new Botao();
					this.add(btNovo);
					btNovo.setText("Novo");
				}
				{
					btEditar = new Botao();
					this.add(btEditar);
					btEditar.setText("Editar");
				}
				{
					btExluir = new Botao();
					this.add(btExluir);
					btExluir.setText("Excluir");
				}
				{
					btBusca = new Botao();
					this.add(btBusca);
					btBusca.setText("Buscar");
				}
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	public Botao getBtNovo()
	{
		return btNovo;
	}
	
	public Botao getBtEditar()
	{
		return btEditar;
	}
	
	public Botao getBtExcluir()
	{
		return btExluir;
	}
	
	public Botao getBtBusca()
	{
		return btBusca;
	}
}
